<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>number类型</title>
</head>
<body>
    <form action="" method="post">
        <fieldset>
            <legend>请输入日期</legend>
            <label for="year">年</label>
            <input type="number" min="1990" max="2025" id="yar" name="year">
            <br>
            <label for="month">月</label>
            <input type="number" min="1" max="12" id="month" name="month">
            <br>
            <label for="day">日</label>
            <input type="number" min="1" max="31" id="day" name="day">
            <br>
            <button type="submit">提交</button>
        </fieldset>
    </form>
</body>
</html>